﻿//helper function to create the form
function getNewSubmitForm() {
    var submitForm = document.createElement("FORM");
    document.body.appendChild(submitForm);
    submitForm.method = "POST";
    return submitForm;
}

//helper function to add elements to the form
function createNewFormElement(inputForm, elementName, elementValue) {
    var newElement = document.createElement("input");
    inputForm.appendChild(newElement);
    newElement.name = elementName;
    newElement.type = 'text';
    newElement.value = elementValue;
    return newElement;
}

